home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / partman / finish.d / 70aptinstall_ext3 < prev    next >
Text File  |  2009-10-28  |  499b  |  28 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. ext3=no
  6.  
  7. for dev in $DEVICES/*; do
  8.     [ -d "$dev" ] || continue
  9.     cd $dev
  10.     partitions=
  11.     open_dialog PARTITIONS
  12.     while { read_line num id size type fs path name; [ "$id" ]; }; do
  13.         [ "$fs" != free ] || continue
  14.         [ -f $id/method -a -f $id/acting_filesystem ] || continue
  15.         filesystem=$(cat $id/acting_filesystem)
  16.         case $filesystem in
  17.             ext3|ext4)
  18.             ext3=yes
  19.             ;;
  20.         esac
  21.     done
  22.     close_dialog
  23. done
  24.  
  25. if [ "$ext3" = yes ]; then
  26.     apt-install e2fsprogs || true
  27. fi
  28.